package ru.beta2.testyard;

/**
 * Abstraction that represents one step in scenario.
 * <br/>
 * User: Inc
 * Date: 17.06.2008
 * Time: 0:36:00
 */
public interface Step extends Script
{
    /**
     * Begin new scenario step with default name (default step names: 2nd, 3rd, 4th and so on)
     * @return new step object
     */
    Step nextStep();

    /**
     * Begin new step in scenario
     * @param name label of the step
     * @return new step object
     */
    Step nextStep(String name);

}
